<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>media</title>
</head>
<body>
  <video autoplay playsinline id="player"></video>

  <!-- You can also require other files to run in this process -->

  <script src="./renderer.js"></script>

  <!--
    ↓ getDisplayMedia在electron中用会报：Uncaught (in promise) DOMException: Requested device not found
    （但在浏览器中直接是可以使用的）
  -->
  <!--<script>
    navigator.mediaDevices.getDisplayMedia({
      video:true,
      audio:false
    })
      .then((stream)=>{
        player.srcObject = stream;
      })

  </script>-->
</body>
</html>
